package com.csi.sai.bl.dataview;

import javax.sql.DataSource;

public class GetDataViewFactory {
	
	public static GetDataView getDataView(int type, DataSource ds) {
		switch(type) {
			case 0: return new GetDataViewDemand(ds);
			case 1: return new GetDataViewRecruitment(ds);
			case 2: return new GetDataViewCandidate(ds);
			case 3: return new GetDataViewCandidateDialog(ds);
			case 4: return new GetDataViewVacancy(ds);
			case 5: return new GetDataViewRelationship(ds);
			case 6: return new GetDataViewClients(ds);
			case 7: return new GetDataViewContacts(ds);
			default: return null;
		}
	}
}
